package day07;

public class HW {
/*定义一个方法，求三个int数的平均值 */
public static void main(String[] args) {

    System.out.println(average(10, 20, 30)); 
    System.out.println(average(1, 2, 4)); 
    System.out.println(average(86, 2, 47));

}
public static double average(int a, int b, int c) {

    return (double)(a + b + c) / 3.0;

}
}

